package com.zxx.casserver.modules.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户关联关系表-数据库使用
 * </p>
 *
 * @author zhoukai
 * @since 2020-08-03
 */
@TableName("cas_user_relation")
public class UserRelationDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户UID
     */
    private Long uid;

    /**
     * 关联类型： 1角色
     */
    private Integer type;

    /**
     * 关联ID
     */
    private Long relationId;

    /**
     * 创建时间
     */
    private Long createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserRelationDO{" +
                "id=" + id +
                ", uid=" + uid +
                ", type=" + type +
                ", relationId=" + relationId +
                ", createTime=" + createTime +
                '}';
    }
}
